<style scoped>
.backend-header {
  background-color: #303133;
  color: #ffffff;
  width: 100%;
  padding: 0 0 0 12px;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 99;
  height: 48px;
}

.backend-header .logo {
  width: 220px;
}
</style>
<!--  -->
<template>
  <div class="backend-header dffr noselect">
    <div class="logo dfac">
      <img :src="logo" alt="" height="45" title="" />
    </div>
    <Opation />
  </div>
</template>

<script>
import logo from '@/assets/logo.png'
import Opation from '@/components/header/backendHeader/opation/Opation.vue'
import * as functions from '@/core/functions.js'
export default {
  created () {
    functions.agentInfo().then(agent => {
      if (parseInt(agent.loginAgentDomain) === 1) {
        this.logo = agent.backendLogoImgSrc
      } else {
        this.logo = logo
      }
    })
  },
  data () {
    return {
      logo: ''
    }
  },
  components: {
    Opation
  }
}
</script>
